home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.sv4 < prev    next >
Makefile  |  1996-03-15  |  5KB  |  145 lines

  1. # $Id: makefile.sv4,v 4.30 1996/03/15 07:13:42 hubert Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36. #
  37.  
  38.  
  39. #
  40. #     Make file for the Pine mail system for SVR4
  41. #
  42. #
  43. #   Most commonly fiddled flags for compiler.
  44. #   Uncomment the setttings desired here
  45. #
  46. RM=          rm -f
  47. LN=          ln -s
  48. MAKE=        make
  49. OPTIMIZE=    # -O
  50. PROFILE=     # -pg
  51. DEBUG=       -g -DDEBUG
  52.  
  53. IMAPDIR=     ../c-client
  54. PICODIR=     ../pico
  55.  
  56. STDLIBES=    -ltermlib -lsocket -lnsl -lgen
  57. LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  58. LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  59.  
  60. STDCFLAGS=   -Dconst= -DSV4 -DSYSTYPE=\"SV4\" -DMOUSE
  61. CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  62.  
  63. obj=    addrbook.o adrbklib.o args.o context.o filter.o \
  64.     folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
  65.     mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
  66.     reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
  67.     ttyout.o os.o
  68.  
  69. cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
  70.     folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
  71.     mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  72.     reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  73.     ttyout.c os.c
  74.  
  75. pine:  $(obj) $(LOCLIBES)
  76.     echo "char datestamp[]="\"`date`\"";" > date.c
  77.     echo "char hoststamp[]="\"`hostname`\"";" >> date.c
  78.     $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
  79.  
  80. # this is not part of pine
  81. pine-use:    pine-use.c
  82.     $(CC) -o pine-use pine-use.c
  83.  
  84. clean:
  85.     $(RM) *.o os.h os.c helptext.c helptext.h
  86.     cd osdep; make clean; cd ..
  87.  
  88.  
  89. HEADERS= headers.h pine.h os.h helptext.h context.h \
  90.       $(IMAPDIR)/mail.h $(IMAPDIR)/osdep.h
  91.  
  92. addrbook.o:    addrbook.c  $(HEADERS) adrbklib.h $(PICODIR)/pico.h
  93. adrbklib.o:     adrbklib.c  $(HEADERS) adrbklib.h
  94. args.o:        args.c      $(HEADERS)
  95. context.o:    context.c   $(HEADERS) $(IMAPDIR)/misc.h
  96. filter.o:    filter.c    $(HEADERS) $(PICODIR)/pico.h
  97. folder.o:    folder.c    $(HEADERS)
  98. help.o:        help.c      $(HEADERS)
  99. helptext.o:    helptext.c
  100. imap.o:            imap.c      $(HEADERS)
  101. init.o:        init.c      $(HEADERS)
  102. mailcap.o:    mailcap.c   $(HEADERS)
  103. mailcmd.o:    mailcmd.c   $(HEADERS) $(PICODIR)/pico.h
  104. mailindx.o:    mailindx.c  $(HEADERS)
  105. mailpart.o:    mailpart.c  $(HEADERS)
  106. mailview.o:    mailview.c  $(HEADERS)
  107. newmail.o:    newmail.c   $(HEADERS)
  108. os.o:        os.c         $(HEADERS)
  109. other.o:    other.c     $(HEADERS) $(PICODIR)/pico.h
  110. pine.o:        pine.c      $(HEADERS)
  111. reply.o:    reply.c     $(HEADERS)
  112. screen.o:    screen.c    $(HEADERS)
  113. send.o:            send.c      $(HEADERS) $(IMAPDIR)/smtp.h $(PICODIR)/pico.h
  114. signals.o:    signals.c   $(HEADERS)
  115. status.o:    status.c    $(HEADERS)
  116. strings.o:    strings.c   $(HEADERS)
  117. ttyin.o:    ttyin.c     $(HEADERS)
  118. ttyout.o:    ttyout.c    $(HEADERS)
  119.  
  120. os.h:    osdep/os-sv4.h
  121.     $(RM) os.h
  122.     $(LN) osdep/os-sv4.h os.h
  123.  
  124. helptext.c:    pine.hlp
  125.         ./cmplhelp.sh  < pine.hlp > helptext.c
  126.  
  127. helptext.h:    pine.hlp
  128.         ./cmplhlp2.sh  < pine.hlp > helptext.h
  129.  
  130. os.c:    osdep/os-sv4.c
  131.     $(RM) os.c
  132.     $(LN) osdep/os-sv4.c os.c
  133.  
  134. osdep/os-sv4.c:    osdep/bld_path osdep/canacces osdep/canonicl \
  135.         osdep/chnge_pw osdep/coredump osdep/creatdir \
  136.         osdep/diskquot.sv4 osdep/domnames osdep/err_desc \
  137.         osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
  138.         osdep/fnexpand osdep/header osdep/hostname.una \
  139.         osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
  140.         osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
  141.         osdep/rename osdep/srandom.dum osdep/tempfile osdep/tempnam \
  142.         osdep/writ_dir osdep/sunquota osdep/sendmail osdep/execview \
  143.         osdep/os-sv4.ic
  144.     cd osdep; $(MAKE) includer os-sv4.c; cd ..
  145.